package book;

public class BOOKLIST {
    private BOOK[] books = new BOOK[10];
    private int usedSize;//放的数的个数
    public BOOKLIST(){
        this.books[0] = new BOOK("三国演义","罗贯中","小说",10);
        this.books[1] = new BOOK("西游记","吴承恩","小说",60);
        this.books[2] = new BOOK("红楼梦","曹雪芹","小说",12);
        this.usedSize = 3;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }

    public BOOK getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(int pos,BOOK book) {
        this.books[pos] = book;
    }
    public BOOK[] getBooks(){
        return books;
    }
}
